import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

import { Provider } from "react-redux";
import store from "./store";

ReactDOM.render(
  // 2. 导入Provider组件，包住App组件， 🔔设置store属性：让redux和react建立绑定
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById("root")
);
